package com.unhz.generator.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by cxg on 2017/11/10 0010.
 *
 * @Author 曹显贵
 * @Date 2017/11/10 0010 14:26
 */
public class IsNumeric {
    public static boolean isNumeric(String str){
        Pattern pattern = Pattern.compile("[0-9]*");
        Matcher isNum = pattern.matcher(str);
        if( !isNum.matches() ){
            return false;
        }
        return true;
    }
}
